WPDeveloper\BetterDocs\Utils\BlockTemplate A

Total Complexity 63
Dependencies 6
Dependents 1
Total lines 490
Lines of code 265
Logical lines of code 145
Comment lines 174
Methods 19
Properties 0

Methods 19

Method Rating Maintainability Complexity Lines of code
build_template_result_from_post()
S
48 6 32
get_block_templates_from_betterdocs()
S
53 6 24
inject_theme_attribute_in_content()
S
54 6 22
build_template_result_from_file()
S
53 5 21
flatten_blocks()
S
56 5 20
convert_slug_to_title()
S
59 5 14
set_has_theme_file_if_fallback_is_available()
S
60 5 14
create_new_block_template_object()
S
57 4 15
supports_block_templates()
S
66 4 9
get_template_paths()
S
62 3 11
remove_theme_templates_with_custom_alternative()
S
55 2 23
get_block_template()
S
66 3 9
get_plugin_block_template_types()
S
55 1 21
get_block_template_title()
S
66 2 8
get_block_template_description()
S
69 2 7
get_templates_directory()
S
80 1 3
template_is_eligible_for_docs_archive_fallback()
S
79 1 3
generate_template_slug_from_path()
S
75 1 4
get_templates_fils_from_betterdocs()
S
73 1 5